namespace CSharpPro._0918;

public class Phone
{
    private String brand;
    private String weight;
    private long camera;
    private int price;

    public Phone(String brand, String weight, long camera, int price)
    {
        this.brand = brand;
        this.weight = weight;
        this.camera = camera;
        this.price = price;
    }

    public override string ToString()
    {
        return "品牌:"+brand+"\n"
               +"重量:"+weight+"\n"
               +"后置摄像头像素:"+camera+"\n"
               +"价格:"+price;
    }
}